<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script type="text/javascript">
			/*
			  if(条件表达式1){
			       语句;
			    }else if(条件表达式2){
			       语句;
			    }else if(条件表达式3){
			       语句;
			    }
			    ...
			    }else{
			       语句;
			    }
			*/
			var b = 6;
			if (b == 1) {
				console.log("周一");
			} else if (b == 2) {
				console.log("周二");
			} else if (b == 3) {
				console.log("周三");
			} else if (b == 4) {
				console.log("周四");
			} else if (b == 5) {
				console.log("周五");
			} else if (b == 6) {
				console.log("周六");
			} else if (b == 7) {
				console.log("周日");
			} else {
				console.log("无");
			}
		</script>
	</head>
	<body>
	</body>
</html>
